package com.zhijiaoyun.model;

import java.io.Serializable;
import java.util.Date;
/**
 * @author shisfish
 * @date 2017/6/6
 */
public class Collection implements Serializable {
	private static final long serialVersionUID = -8996761023873779785L;

	private Long collectionId;

    private Long relationId;

    private Long userId;

    private Integer collectionType;

    private Date createTime;
    
    public Collection() {
		super();
	}

	public Collection(Long relationId, Long userId, Integer collectionType) {
		super();
		this.relationId = relationId;
		this.userId = userId;
		this.collectionType = collectionType == null ? 1 : collectionType;
		this.createTime = new Date();
	}

	public Long getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(Long collectionId) {
        this.collectionId = collectionId;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relattionId) {
        this.relationId = relattionId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

	public Integer getCollectionType() {
		return collectionType;
	}

	public void setCollectionType(Integer collectionType) {
		this.collectionType = collectionType;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}